package com.sunsy.authserver.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunsy.authserver.beans.po.AccessToken;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * (AccessToken)表数据库访问层
 *
 * @author makejava
 * @since 2021-07-20 14:34:04
 */
@Mapper
public interface AccessTokenDao extends BaseMapper<AccessToken> {

    @Select("select * from  access_token where client_id = #{clientId}")
    public AccessToken getTokenByClientId(Long clientId);

}